import Vue from 'vue'
import axios from 'axios'
import App from './App'
import router from './router'
import './utils/rem'
// import test from './utils/test'
import '@/components/index.js'
import storage  from '@/utils/storage'
import xConfig  from '@/config/index'
Vue.config.productionTip = false   //阻止显示生产模式的消息
/* eslint-disable no-new */

// 给vue实例原型链添加属性
Vue.prototype.$axios = axios
// Vue.prototype.$test = test
Vue.prototype.$storage = storage
Vue.prototype.$xconfig = xConfig
// console.log(router)
new Vue({
  // el: '#app', //自动挂载
  router,
  render: h => h(App) //暂且可以理解为渲染app组件
  // render:function(createElement){
  //   return createElement(app)
  // }
}).$mount('#app')
